//
//  CTPPlacesFetcher.h
//  citipad
//
//  Created by Chih Yuan Liu on 3/14/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CTPBaseUrlFetcher.h"


@class CTPPlacesFetcher;

@protocol CTPPlacesFetcherDelegate
- (void)placesFetcherBegin:(CTPPlacesFetcher*)sender;
- (void)placesFetcherEnd:(CTPPlacesFetcher*)sender;
- (void)placesFetcherSucceeded:(CTPPlacesFetcher*)sender data:(NSData*)data;
- (void)placesFetcherFailed:(CTPPlacesFetcher*)sender;
@end

@interface CTPPlacesFetcher : CTPBaseUrlFetcher {
	NSObject<CTPPlacesFetcherDelegate> *delegate;
}

-(void)getDataFromCtp:(double)lat lng:(double)lng;

@property (readwrite, retain) NSObject<CTPPlacesFetcherDelegate> *delegate;

@end
